<?php
defined('_JEXEC') or die('Restricted access');
$editor =& JFactory::getEditor();
?>

<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
	<fieldset class="adminform">

		<table class="admintable">
		
		<tr>
			<td width="100" align="right" class="key">
				<?php echo JText::_( 'NAME' ); ?>:
			</td>
			<td>
				<input type="text" name="name" id="name" value="<?php echo $this->category->name; ?>" class="text_area" size="48" maxlength="250" />
			</td>
		</tr>
		
		<tr>
			<td width="100" align="right" class="key">
				<?php echo JText::_( 'ALIAS' ); ?>:
			</td>
			<td>
				<input type="text" name="alias" id="alias" value="<?php echo $this->category->alias; ?>" class="text_area" size="48" maxlength="250" />
			</td>
		</tr>
		
		<tr>
			<td valign="top" align="right" class="key">
				<?php echo JText::_( 'PROFILE' );?>:
			</td>
			<td>
				<?php echo $this->lists['profiles']; ?>
			</td>
		</tr>
		<!--
		<tr>
			<td valign="top" align="right" class="key">
				<?php //echo JText::_( 'PARENT' );?>:
			</td>
			<td>
				<?php //echo $this->lists['parentSelectList']; ?>
			</td>
		</tr>
		-->
		
		<tr>
			<td width="100" align="right" class="key">
				<?php echo JText::_( 'MENU IMAGE' ); ?>:
			</td>
			<td>
				<input type="file" name="upload_image" /><br /><br />
				<?php if(!empty($this->category->menu_image_filename)): ?>
				    <img src="<?php echo IG_IMAGE_HTML_RESIZE; ?><?php echo $this->folderName; ?>/<?php echo $this->fullFileName; ?>" alt=""/>
				<?php endif; ?>
			</td>
		</tr>
		
		<tr>
			<td width="100" align="right" class="key">
				<?php echo JText::_( 'REMOVE MENU IMAGE' ); ?>:
			</td>
			<td>
				<?php echo $this->lists['remove_menu_image']; ?>
			</td>
		</tr>
		<!--
		<tr>
			<td width="100" align="right" valign="top" class="key">
				<?php //echo JText::_( 'MENU DESCRIPTION' ); ?>:
			</td>
			<td>
				<?php //echo $editor->display( 'menu_description', $this->category->menu_description ,'100%', '150', '60', '5' );?>
			</td>
		</tr>
		-->
		<tr>
			<td width="100" align="right" valign="top" class="key">
				<?php echo JText::_( 'DESCRIPTION' ); ?>:
			</td>
			<td>
				<?php echo $editor->display( 'gallery_description', $this->category->gallery_description ,'100%', '150', '60', '5' );?>
			</td>
		</tr>
		
		<tr>
			<td valign="top" align="right" class="key">
				<?php echo JText::_( 'AUTHOR' ); ?>:
			</td>
			<td>
				<?php echo $this->lists['user']; ?>
			</td>
		</tr>
		
		<tr>
			<td valign="top" align="right" class="key">
				<?php echo JText::_( 'PUBLISHED' ); ?>:
			</td>
			<td>
				<?php echo $this->lists['published']; ?>
			</td>
		</tr>
		
	</table>
	</fieldset>

<input type="hidden" name="option" value="com_igallery" />
<?php if(!empty($this->category->id)): ?>
<input type="hidden" name="cid[]" value="<?php echo $this->category->id; ?>" />
<?php endif; ?>
<input type="hidden" name="task" value="" />

</form>